import {
	HANDLE_LOGIN_STATUS,
	HANDLE_LOGIN,
	HANDLE_CHANGE_TABNAME,
	HANDLE_CHANGE_IMPORT_TYPE,
	HANDLE_SET_PAYROLL_INFO
} from './../type'

const mutations = {
	[HANDLE_LOGIN_STATUS](state, isLogin) {
		state.isLogin = isLogin
	},
	[HANDLE_LOGIN](state, user) {
		state.user = user
	},
	[HANDLE_CHANGE_TABNAME](state, tabNames) {
		state.tabNames = tabNames
	},
	[HANDLE_CHANGE_IMPORT_TYPE](state, importType) {
		state.importType = importType
	},
	[HANDLE_SET_PAYROLL_INFO](state, value) {
		state.value = value
	}
}

export default mutations
